package 设计模式.装饰器模式.电商促销案例;

import java.math.BigDecimal;

/**
 * 支付基本类
 * @author admin
 *
 */
public class BaseCount implements IBaseCount {

    public BigDecimal countPayMoney(OrderDetail orderDetail) {
        orderDetail.setPayMoney(orderDetail.getMerchandise().getPrice());
        System.out.println(" 商品原单价金额为：" +  orderDetail.getPayMoney());

        return orderDetail.getPayMoney();
    }

}